package com.service.task;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
 
import org.springframework.stereotype.Service;

@Service
public class ExcelService {

	public void test(OutputStream out) throws IOException {
//		String filePath = "e:\\sample.xlsx";// 文件路径
//		HSSFWorkbook workbook = new HSSFWorkbook();
////		XSSFSheet sheet = workbook.createSheet();
//		FileOutputStream out1 = new FileOutputStream(filePath);
//		workbook.write(out1);// 保存Excel文件
//		workbook.close();
	}
}
